Open
Conversation
0914e3a to
580fb6a
Compare
b5aa514 to
30e2bb0
Compare
dd99d34 to
b8ede4d
Compare
…data_deci() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> No testcase, the check seems redundant
This is not a security issue Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
…e_to_fine() note, all call sites set start_band=0, this is thus a cosmetic fix Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Fixes: out of array access Fixes: vvc_poc_subpic_wh_bug.h266 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Fixes: out of array read with --disable-safe-bitstream-reader Fixes: poc_wmv2.avi Note, this requires the safe bitstream reader to be turned off by the user and the user disregarding the security warning Change suggested by: Guanni Qu <qguanni@gmail.com> Found-by: Guanni Qu <qguanni@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
…rately" Support for input and output formats are already checked in run_self_tests(). This reverts commit a22faeb. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
…ailures Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
We will eventually be able to select between running the new graph-based scaler or the legacy scaler. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
…scaler The low bit depth workaround code is duplicated in this commit, but the other occurrence will be removed in a few commits, so I see no reason to factor it out. The legacy scaler still has some conversions that give results much worse than the expected loss, but we still want them as reference, so we don't trigger expected loss errors on conversions with the legacy scaler. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
The conversion parameters, ssim/loss, and benchmark results will eventually be merged into the same output line. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
The test results (along with SSIM) are printed to stdout again so that the output can be parsed by -ref. Benchmark results have also been added to the output. We still need to re-run the reference tests to perform benchmarks, but this will be simplified in the next few commits. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
The format of the reference file is the output which is printed to stdout from this tool itself. Malformed reference files cause an error, with a more descriptive error message. Running a subset of the reference conversions is still supported through -src and/or -dst. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
This emphasizes the order of magnitude of the loss, which is what is important for us. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
The legacy scaler is no longer implicitly used to generate a reference to perform comparisons for every conversion. It is now up to the user to generate a reference file and use it as input for a separate run to perform comparisons. It is now possible to compare against previous runs of the graph-based scaler, for example to test for newer optimizations. This reduces the overall time necessary to obtain speedup numbers from the legacy scaler to the graph-based scaler (or any other comparison, for that matter) since the reference must only be run once. For example, to check the speedup between the legacy scaler and the graph-based scaler: ./libswscale/tests/swscale [...] -bench 50 -legacy 1 > legacy_ref.txt ./libswscale/tests/swscale [...] -bench 50 -ref legacy_ref.txt If no -ref file is specified, we are assuming that we are generating a reference file, and therefore all information is printed (including ssim/loss, and benchmarks if -bench is used). If a -ref file is specified, the output printed depends on whether we are testing for correctness (ssim/loss only) or benchmarking (time/ speedup only, along with overall speedup). Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
Reproduce: ffmpeg -i /tmp/bwdif_test_input_160x4_gray16.jpg -vf "bwdif" -f null - filter_intra accesses rows 3 lines away via cur[mrefs3] and cur[prefs3]. For small height videos (h <= 4), this causes heap-buffer-overflow. Add boundary check for filter_intra when YADIF_FIELD_END is set. The boundary condition (y < 3) or (y + 3 >= td->h) precisely matches filter_intra's 3-line context requirement. Test file: 160x4 gray16 JPEG https://code.ffmpeg.org/attachments/db2ace24-bc00-4af6-a53a-5df6b0d51b15 fix #21570 Reviewed-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.